package com.practice.common.result;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 封装分页查询结果
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PageResult implements Serializable {

    private Long count; //总记录数
    private Long totalPages; //总页数
    private Long pageSize; //页码大小
    private Long currentPage; //当前页码
    private List data; //当前页数据集合

}
